package com.nj.user.controller;

import com.nj.redis.util.RedisUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("test")
public class TestController {
    @Resource
    private RedisUtil redisUtil;

    @GetMapping
    public void set(){
        redisUtil.set("name","鱼翅");
    }
}
